from flask import Flask, request, render_template
import os
import uuid
from gxl_ai_utils.utils import utils_file


app = Flask(__name__)
@app.route('/')
def index():
    return render_template('indexl.html')

@app.route('/upload', methods=['POST'])
def upload():
    audio = request.files['audio']
    filename = str(uuid.uuid4()) + '.webm'
    audio.save(os.path.join('uploads', filename))
    return '', 204

@app.route('/gxl', methods=['GET'])
def upload1():
    return 'GENGXUELONG', 204

if __name__ == '__main__':
    app.run()